package cn.wolfcode.luowowo.repository;

import cn.wolfcode.luowowo.domain.Destination;
import org.springframework.data.domain.PageRequest;
import org.springframework.data.mongodb.repository.MongoRepository;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface DestinationRepository extends MongoRepository<Destination,String>{


    List<Destination> findByIdIn(List<String> refIds);


    List<Destination> findByParentIdIn(List<String> ids);

    List<Destination> findByParentName(String name);

    List<Destination> findByParentId(String id, PageRequest of);

//    Destination findByParentId(String );
}
